var io = require("socket.io").listen(8000);
io.configure(function () {
    io.set("log level", 1);
});
io.sockets.on("connection", function(socket) {
    setSocketEventHandler(socket);
});
//require('./web-server');






// goi class
var checkLogin = require('./checkLogin'),//checkLogin.js
    tuan = require('./tuan');//tuan.js

// nghe tin hieu tu client
function setSocketEventHandler(socket){
    socket.on('checkLogin', checkLogin.login);
    socket.on('send all users', tuan.sendAllUser);
}







